package com.example.prison.service;

import com.example.prison.entity.PeopleManage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.example.prison.entity.UseCarManagement;
import com.github.pagehelper.PageInfo;

import java.util.List;

/**
* @author jiang
* @description 针对表【people_manage】的数据库操作Service
* @createDate 2024-06-03 16:13:21
*/
public interface PeopleManageService extends IService<PeopleManage> {

    PageInfo<PeopleManage> get(int pageNumber, int pageSize,
                               String name, String unit, String post, String status, String phone, String idCard);

    int add(PeopleManage data);

    int delete(Integer[] ids);

    int update(PeopleManage data, Integer id);

    PeopleManage getById(Integer id);

    PeopleManage getOnePersonnelByIDCard(String IdCard);

    List<PeopleManage> getByStatusAndName(String name, String status);

    List<PeopleManage> getOneListByName(String name);

    List<PeopleManage> getByPost(String post);

    List<PeopleManage> getByUnit(String unit);

    PeopleManage getByPID(String pid);


}
